﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Gaiocorp.SLMapViewer
{
    public partial class TreeViewNodeClass : UserControl
    {
        #region Private Properties
        private Color _backroundColor = Colors.White;
        private Color _titleColor = Colors.Black;
        private double _bakOpacity = 1.0;
        #endregion
        #region Public Properties

       
        public Color BackroundColor
        {
            get { return _backroundColor; }
            set
            {
                _backroundColor = value;
                this.LayoutRoot.Background = new SolidColorBrush(_backroundColor);
            }
        }
        public Color TitleColor
        {
            get { return _titleColor; }
            set
            {
                _titleColor = value;
                this.tbClassName.Foreground = new SolidColorBrush(_titleColor);
            }
        }
        public double BackgroundOpacity
        {
            get { return _bakOpacity; }
            set
            {
                _bakOpacity = value;
                this.LayoutRoot.Opacity = _bakOpacity;
            }
        }
        #endregion
        public TreeViewNodeClass()
        {
            InitializeComponent();
        }
    }
}
